<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('searchOrder')}" method="post">
        <div class="bjui-searchBar">
            <div class="bjui-searchBar">
                 <label>搜索条件:</label>
                <div role="group" class="btn-group">
                    <select name="key" data-toggle="selectpicker">
                        <option value="order_sn" <?php echo I("key")=="order_sn" ? "selected='true'" : "";?>>网店单号</option>
                        <option value="order_no" <?php echo I("key")=="order_no" ? "selected='true'" : "";?>>系统单号</option>
                        <option value="user_name" <?php echo I("key")=="user_name" ? "selected='true'" : "";?>>姓名</option>
                        <option value="mobile_phone" <?php echo I("key")=="mobile_phone" ? "selected='true'" : "";?>>手机</option>
                        <option value="home_phone" <?php echo I("key")=="home_phone" ? "selected='true'" : "";?>>电话</option>
                        <option value="address" <?php echo I("key")=="address" ? "selected='true'" : "";?>>地址</option>
                        <option value="goods_sn" <?php echo I("key")=="goods_sn" ? "selected='true'" : "";?>>货号</option>
                        <option value="bar_code" <?php echo I("key")=="bar_code" ? "selected='true'" : "";?>>条码</option>
                        <option value="seller_note" <?php echo I("key")=="seller_note" ? "selected='true'" : "";?>>卖家备注</option>
                        <option value="message" <?php echo I("key")=="message" ? "selected='true'" : "";?>>买家留言</option>
                        <option value="check_message" <?php echo I("key")=="check_message" ? "selected='true'" : "";?>>审单备注</option>
						<option value="host_order_sn" <?php echo I("key")=="host_order_sn" ? "selected='true'" : "";?>>申请编号</option>
					  </select>
					  <input type="text" name="value" class="form-control" size="20" value="{:I('value')}">
                </div>
                <button type="submit" class="btn-default" data-icon="search">查询</button>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top">
        <thead>
             <tr>
				<th data-order-field="order_no">订单号</th>
				<th data-order-field="order_sn">网店单号</th>
				<th data-order-field="user_name">收件人</th>
				<th data-order-field="mobile_phone">手机</th>
				<th data-order-field="order_status">订单状态</th>
				<th width="100">操作</th>
			  </tr>
        </thead>
        <tbody>
     <?php foreach($_list as $arr):?>
      <tr data-id="{$arr.order_id}">
	  	<if condition="$arr.order_no neq ''">
        <td>{$arr.order_no}</td>
		<else />
		<td>未生成</td>
		</if>
        <td><a  data-toggle="navtab" data-options="{id:'Order{$arr['order_id']}', url:'{:U('order/detailsOrder?orderId='.$arr['order_id'].'&isAfterSale=1'.'&navTabId=Order'.$arr['order_id'])}', title:'{$arr.order_sn}-订单详细'}">{$arr.order_sn}</a>
		<if condition="$arr.message_content neq ''">
		<span class="fa fa-flag" style="color:#FF0000"></span>
		</if>
		<br />({$arr.bank_name})
		</td>
        <td>{$arr.user_name}<br />[{$arr.seller_name}]</td>
        <td>{$arr.mobile_phone}</td>
		<if condition="$arr.order_status neq ''">
        <td>{$arr.order_status}
			<if condition="$arr.is_barter eq '1'">
				<br />（换货订单）
			</if>
		</td>
		<else />
		<td>未生成</td>
		</if>
        <td><a class="btn btn-green" data-toggle="navtab" data-options="{id:'Order{$arr['order_id']}', url:'{:U('order/detailsOrder?orderId='.$arr['order_id'].'&navTabId=Order'.$arr['order_id'])}', title:'{$arr.order_sn}-订单详细'}">订单详情</a></td>
      </tr>
     <?php endforeach;?>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>

        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="{$pageSize}">{$pageSize}</option>
                <option value="{$pageSize*3}">{$pageSize*3}</option>
                <option value="{$pageSize*6}">{$pageSize*6}</option>
                <option value="{$pageSize*12}">{$pageSize*12}</option>
                <option value="{$pageSize*15}">{$pageSize*15}</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$total} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}"
         data-page-current="{$pageCurrent}"></div>
</div>